<template>
	<view>
		<u-empty v-if="!myneedlist.length" class="needisempty" textSize="30" text="需求为空" mode="order" iconSize="240rpx"
			font-size="40rpx" marginTop="200">
		</u-empty>
		<template v-else>
			<!-- 需求列表 -->
			<view class="myneedicardlist">
				<view class="myneedicard" v-for="(item,index) in myneedlist" :key='index'>
					<needcard :needcardall="item"></needcard>
					<!-- <view class="meedicardmargin">
						<view class="needicardtime">{{item.createTime}}</view>
						<view class="thistimeicard" :key="needindex">
							<view class="needicard" @click="goto()">
							<needcard :needcardall="item"></needcard>
							</view>
						</view>
					</view> -->
				</view>
			</view>
		</template>
		<u-back-top :scroll-top="scrollTop" mode="square" tips="顶部"></u-back-top>
		<!-- 底部适配 -->
		<view class="adaptation"></view>
	</view>
</template>

<script>
	import needcard from './needcard/needcard.vue';
	export default {
		components: {
			needcard
		},
		data() {
			return {
				myneedlist: []
			}
		},
		methods: {
			getmyneed() {}
		},
		onLoad() {
			this.getmyneed();
		},
		onPageScroll(e) { //生命周期函数
			this.scrollTop = e.scrollTop
		}
	}
</script>

<style>
	@import url("myneed.css");
</style>
